// 顶部栏
$headHeight: 60px; // 高度

// 侧边栏
$sideBarWidth: 210px; // 宽度
// $sideBarColor: #b7b5b5; // 文字颜色
$sideBarColor: #303133; // 文字颜色
$sideBarBgColor: #1b2a47; // 背景颜色
$sideBarBgColorActive: #2a395b; // 背景颜色（激活状态）

@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

// label {
//   font-weight: 700;
// }

html {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
  // background-color: #f0f2f5;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

.pt0 {
  padding-top: 0;
}

.login,
.register {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: url("../assets/login.png") no-repeat center;
  background-size: cover;
}

/* 头部用户信息样式重置 */
.hidden {
  display: none !important;
}

// .resetTop {
//   top: 48px !important;
// }

// 灰色模式
.html-grey {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: url("data:image/svg+xml;utf8,#grayscale");
  filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
  -webkit-filter: grayscale(1);
}

// 色弱模式
.html-weakness {
  filter: invert(80%);
  -webkit-filter: invert(80%);
  -moz-filter: invert(80%);
  -ms-filter: invert(80%);
  -o-filter: invert(80%);
}

.pc-spacing {
  margin: 10px;
}

.mobile-spacing {
  margin: 0;
}

// 表单类页面样式
.form-wrapper {
  padding: 1px 20px 40px;
}

// font-end  项目新增
// @import './variables.scss'; // Already imported in style-resources-loader
// @import './mixins.scss'; // Already imported in style-resources-loader
// @import './transition.scss';
// @import './svgicon.scss';

/* Global scss */

// body {
//   height: 100%;
//   -moz-osx-font-smoothing: grayscale;
//   -webkit-font-smoothing: antialiased;
//   font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
// }

// html {
//   height: 100%;
// }

// #app {
//   height: 100%;
// }

*,
*:before,
*:after {
  box-sizing: border-box;
}

a,
a:focus,
a:hover {
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  @include clearfix;
}

// label {
//   font-weight: 600;
// }

.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

// Refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

aside {
  background: #eef1f6;
  color: #2c3e50;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;
  }
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.no-padding {
  padding: 0px !important;
}

// POC公用样式
.project-list-container {
  // padding: 20px;
}

.project-list-container.flex {
  display: flex;
  height: 100%;
  // min-height: calc(100vh - 84px);
  // padding: 20px;
}

.project-list-container.flexColum {
  flex-direction: column;
}

.project-list-container.paddingTop0 {
  padding-top: 0;
}

.tab-box {
  flex: 1;
  width: 100%;
}

.flex-box {
  display: flex;
}

.flex300 {
  width: 380px;
}

.width-custom120 {
  width: 120px !important;
}

.width-custom140 {
  width: 140px !important;
}

.width-custom220 {
  width: 220px !important;
}

.width-custom200 {
  width: 200px;
}

.width-custom240 {
  width: 280px;
}

.width-customp100 {
  width: 100% !important;
}

.list-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.list-h.align-center {
  align-items: center;
}

.text-right {
  text-align: right;
}

.add-option {
  margin-bottom: 10px;
}

.mg-row {
  margin-bottom: 30px;
}

.op-btn {
  padding: 4px 6px;
}

.op-btn.error {
  color: red;
}

// 编辑/添加
h4,
.go-back {
  display: flex;
  align-items: center;
}

.go-back {
  cursor: pointer;
}

.go-back i {
  font-size: 22px;
}

.go-back:hover {
  color: #409eff;
}

.upload-demo {
  display: inline-block;
  margin-left: 30px;
}

.titles {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 20px;
}

.gantt-box {
  flex: 1 1 400px;
}

.img-box {
  display: inline-block;
  max-width: 200px;
  margin-right: 5px;
}

.img-box img {
  max-width: 100%;
}

.redColor {
  width: 10px;
  height: 10px;
  background: #f5a623;
  border-radius: 50%;
  display: inline-block;
}

.greenColor {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #21d371;
  display: inline-block;
}

.grayColor {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #979797;
  display: inline-block;
}

.overdue-indicator {
  width: 14px;
  margin-top: 10px;
  height: 14px;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 17px;
  color: white;
  background: red !important;
  line-height: 14px;
  text-align: center;
  font-size: 14px;
}

// .el-select-dropdown__item {
//   height: unset;
//   line-height: unset;
// }
.dept .el-select-dropdown__item {
  height: auto;
  // min-height: 100px;
  // max-height: 274px;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.w40 {
  width: 40%;
}

.project-box .el-select-dropdown__item {
  padding: 0 32px 0 20px !important;
}

.el-sub-menu .iconfont,
.el-menu-item .iconfont {
  vertical-align: middle;
  margin-right: 5px;
  width: 24px;
  text-align: center;
  font-size: 18px;
}

.upload-base .el-upload--text {
  display: none;
}

.w402 {
  position: relative;
  width: 40%;

  .el-select {
    width: 50% !important;
  }
}

.text--info:empty::before {
  content: "-";
  color: gray;
}

.text--info.subtext {
  color: #8895b7;

  .el-link--inner {
    color: #8895b7;
    font-weight: normal;

    &:hover {
      color: #f89c34;
    }
  }
}

.year-pop {
  background: #00152b !important;

  .el-picker-panel__body {
    background: #00152b !important;
  }
  .el-popper__arrow::before {
    display: none;
  }
  button,
  span,
  a {
    color: rgba(227, 234, 253, 0.6) !important;
  }
  .el-year-table td.today .cell {
    color: #5298ff !important;
  }
  .el-date-picker__header--bordered {
    border-bottom: 1px solid rgba(227, 234, 253, 0.6) !important;
  }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.right-position {
  float: right;
}

.search-input {
  width: 90%;
}
